package com.beaven.imclient.data;

import com.beaven.model.model.db.User;

/**
 * author: Beaven
 * time: 2017/6/2 14:59
 */

public class UserSelected {
  private User user;
  private boolean isSelected;

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  public boolean isSelected() {
    return isSelected;
  }

  public void setSelected(boolean selected) {
    isSelected = selected;
  }

  public static UserSelected build(User user) {
    return build(user, false);
  }

  public static UserSelected build(User user, boolean isSelected) {
    UserSelected selected = new UserSelected();
    selected.setUser(user);
    selected.setSelected(isSelected);
    return selected;
  }
}
